import { v4 as uuidv4 } from 'uuid';
import { CategoryItem, LinkItem, TagItem } from './storage';

export const initialCategories: CategoryItem[] = [
  {
    id: uuidv4(),
    name: '监控告警',
    description: '系统监控和告警工具',
  },
  {
    id: uuidv4(),
    name: '日志管理',
    description: '日志收集和分析工具',
  },
  {
    id: uuidv4(),
    name: '容器编排',
    description: '容器管理和编排工具',
  },
  {
    id: uuidv4(),
    name: '配置管理',
    description: '配置中心和管理工具',
  },
  {
    id: uuidv4(),
    name: '持续集成',
    description: 'CI/CD工具',
  },
  {
    id: uuidv4(),
    name: '网络工具',
    description: '网络监控和管理工具',
  },
  {
    id: uuidv4(),
    name: '安全工具',
    description: '安全扫描和管理工具',
  },
  {
    id: uuidv4(),
    name: '数据库运维',
    description: '数据库监控和管理工具',
  },
  {
    id: uuidv4(),
    name: '性能测试',
    description: '性能测试和压测工具',
  },
  {
    id: uuidv4(),
    name: '版本控制',
    description: '代码版本控制工具',
  },
];

export const initialTags: TagItem[] = [
  {
    id: uuidv4(),
    name: '开源',
    description: '开源工具',
  },
  {
    id: uuidv4(),
    name: '云原生',
    description: '云原生工具',
  },
  {
    id: uuidv4(),
    name: '高可用',
    description: '高可用性工具',
  },
  {
    id: uuidv4(),
    name: '可视化',
    description: '可视化工具',
  },
  {
    id: uuidv4(),
    name: '自动化',
    description: '自动化工具',
  },
  {
    id: uuidv4(),
    name: '企业级',
    description: '企业级工具',
  },
];

export const initialLinks: LinkItem[] = [
  // 监控告警
  {
    id: uuidv4(),
    title: 'Prometheus',
    url: 'https://prometheus.io',
    description: '开源的监控告警系统，提供强大的时序数据库和数据采集功能',
    imageUrl:
      'https://raw.githubusercontent.com/prometheus/prometheus/main/documentation/images/prometheus-logo.svg',
    category: '监控告警',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'Grafana',
    url: 'https://grafana.com',
    description: '强大的可视化监控平台，支持多种数据源的指标监控和告警功能',
    imageUrl: 'https://grafana.com/static/img/grafana_icon.svg',
    category: '监控告警',
    tag: '可视化',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'Zabbix',
    url: 'https://www.zabbix.com',
    description: '企业级分布式监控解决方案，支持多种监控方式和自动化操作',
    imageUrl: 'https://assets.zabbix.com/img/logo/zabbix_logo_500x131.png',
    category: '监控告警',
    tag: '企业级',
    stats: { views: 0, favorite: false },
  },

  // 日志管理
  {
    id: uuidv4(),
    title: 'ELK Stack',
    url: 'https://www.elastic.co/elastic-stack',
    description: 'Elasticsearch、Logstash、Kibana组成的日志分析平台',
    imageUrl:
      'https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt36f2da8d650732a0/5d0823c3d8ff351753cbc99f/logo-elasticsearch-32-color.svg',
    category: '日志管理',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'Loki',
    url: 'https://grafana.com/oss/loki/',
    description: 'Grafana Labs开发的轻量级日志聚合系统',
    imageUrl:
      'https://raw.githubusercontent.com/grafana/loki/master/docs/sources/logo.png',
    category: '日志管理',
    tag: '云原生',
    stats: { views: 0, favorite: false },
  },

  // 容器编排
  {
    id: uuidv4(),
    title: 'Kubernetes',
    url: 'https://kubernetes.io',
    description: '容器编排平台的事实标准，提供自动化的容器部署、扩展和管理',
    imageUrl: 'https://kubernetes.io/images/favicon.png',
    category: '容器编排',
    tag: '云原生',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'Docker Swarm',
    url: 'https://docs.docker.com/engine/swarm/',
    description: 'Docker原生的容器编排工具，简单易用',
    imageUrl:
      'https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png',
    category: '容器编排',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },

  // 配置管理
  {
    id: uuidv4(),
    title: 'Ansible',
    url: 'https://www.ansible.com',
    description: '简单强大的自动化配置管理工具',
    imageUrl:
      'https://www.ansible.com/hubfs/2016_Images/Assets/Ansible-Mark-Large-RGB-Mango.png',
    category: '配置管理',
    tag: '自动化',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'Puppet',
    url: 'https://puppet.com',
    description: '企业级配置管理和自动化部署工具',
    imageUrl:
      'https://puppet.com/images/puppet-logo/puppet-logo-amber-white-lg.png',
    category: '配置管理',
    tag: '企业级',
    stats: { views: 0, favorite: false },
  },

  // 持续集成
  {
    id: uuidv4(),
    title: 'Jenkins',
    url: 'https://www.jenkins.io',
    description: '最流行的开源自动化服务器，支持构建、部署、自动化等',
    imageUrl: 'https://www.jenkins.io/images/logos/jenkins/jenkins.png',
    category: '持续集成',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'GitLab CI',
    url: 'https://docs.gitlab.com/ee/ci/',
    description: 'GitLab内置的持续集成服务',
    imageUrl:
      'https://about.gitlab.com/images/press/logo/png/gitlab-icon-rgb.png',
    category: '持续集成',
    tag: '自动化',
    stats: { views: 0, favorite: false },
  },

  // 网络工具
  {
    id: uuidv4(),
    title: 'Wireshark',
    url: 'https://www.wireshark.org',
    description: '世界上最广泛使用的网络协议分析器',
    imageUrl:
      'https://www.wireshark.org/assets/theme-2015/images/wireshark_logo.png',
    category: '网络工具',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'NGINX',
    url: 'https://nginx.org',
    description: '高性能的HTTP和反向代理服务器',
    imageUrl: 'https://nginx.org/nginx.png',
    category: '网络工具',
    tag: '高可用',
    stats: { views: 0, favorite: false },
  },

  // 安全工具
  {
    id: uuidv4(),
    title: 'Nessus',
    url: 'https://www.tenable.com/products/nessus',
    description: '全球最广泛使用的漏洞扫描器',
    imageUrl: 'https://static.tenable.com/press/logos/TenableLogoRGB.png',
    category: '安全工具',
    tag: '企业级',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'OpenVAS',
    url: 'https://www.openvas.org',
    description: '开源的漏洞评估系统',
    imageUrl: 'https://www.openvas.org/img/openvas-logo.png',
    category: '安全工具',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },

  // 数据库运维
  {
    id: uuidv4(),
    title: 'phpMyAdmin',
    url: 'https://www.phpmyadmin.net',
    description: '流行的MySQL数据库管理工具',
    imageUrl: 'https://www.phpmyadmin.net/static/images/logo.png',
    category: '数据库运维',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'pgAdmin',
    url: 'https://www.pgadmin.org',
    description: 'PostgreSQL的特性最丰富的开源管理工具',
    imageUrl: 'https://www.postgresql.org/media/img/about/press/elephant.png',
    category: '数据库运维',
    tag: '可视化',
    stats: { views: 0, favorite: false },
  },

  // 性能测试
  {
    id: uuidv4(),
    title: 'JMeter',
    url: 'https://jmeter.apache.org',
    description: 'Apache开源的性能测试工具',
    imageUrl: 'https://jmeter.apache.org/images/logo.svg',
    category: '性能测试',
    tag: '开源',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'K6',
    url: 'https://k6.io',
    description: '现代化的性能测试工具，开发人员友好',
    imageUrl: 'https://k6.io/images/logo.svg',
    category: '性能测试',
    tag: '自动化',
    stats: { views: 0, favorite: false },
  },

  // 版本控制
  {
    id: uuidv4(),
    title: 'GitLab',
    url: 'https://about.gitlab.com',
    description: '完整的 DevOps 平台',
    imageUrl:
      'https://about.gitlab.com/images/press/logo/png/gitlab-logo-gray-rgb.png',
    category: '版本控制',
    tag: '企业级',
    stats: { views: 0, favorite: false },
  },
  {
    id: uuidv4(),
    title: 'GitHub',
    url: 'https://github.com',
    description: '全球最大的代码托管平台',
    imageUrl:
      'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png',
    category: '版本控制',
    tag: '云原生',
    stats: { views: 0, favorite: false },
  },
];
